"""
    ORM外部调用的配置：
"""
import os

def orm_standby():
    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "NewsRequests.settings")  # manage.py文件中有同样的环境配置
    import django
    django.setup()


# orm_standby()
# from dal import models
#
#
# data_list = models.Search.objects.order_by('?')[0:10]
# print(data_list)
